package edu.pku.taas.hyperic.types2;

import java.util.List;
public class PhysicalMachine {
	protected int resourceId=-1;
	protected String name;
	protected String description;
	protected boolean isXenHost;
	protected String ip;
	protected String uuid;
	
	private int type=3;


	protected int resourcePrototypeId;
	public void setResourcePrototypeName(String resourcePrototypeName) {
		this.resourcePrototypeName = resourcePrototypeName;
	}

	protected String resourcePrototypeName;
	public int getAgentId() {
		return agentId;
	}

	public void setAgentId(int agentId) {
		this.agentId = agentId;
	}

	public int getAgentPort() {
		return agentPort;
	}

	public void setAgentPort(int agentPort) {
		this.agentPort = agentPort;
	}

	protected int agentId;
	protected int agentPort;
	
	protected  int resourceType ;
	
	
	public int getResourceType() {
		return resourceType;
	}

	public void setResourceType(int resourceType) {
		this.resourceType = resourceType;
	}

	protected List<VirtualMachine> vms;
	protected List<MonitorableResource> monitorableResources;
	
	protected List<VirtualMachine> children;
	public boolean isXenHost() {
		return isXenHost;
	}

	public void setXenHost(boolean isXenHost) {
		this.isXenHost = isXenHost;
	}
	
	public List<VirtualMachine> getVms() {
		return vms;
	}

	public void setVms(List<VirtualMachine> vms) {
		this.vms = vms;
		this.children = vms;
	}

	public List<MonitorableResource> getMonitorableResources() {
		return monitorableResources;
	}

	public void setMonitorableResources(List<MonitorableResource> resources) {
		this.monitorableResources = resources;
	}

	public PhysicalMachine() {
		super();
	}

	public int getResourceId() {
		return resourceId;
	}

	public void setResourceId(int resourceId) {
		this.resourceId = resourceId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getResourcePrototypeId() {
		return resourcePrototypeId;
	}

	public void setResourcePrototypeId(int resourcePrototypeId) {
		this.resourcePrototypeId = resourcePrototypeId;
	}

	public String getResourcePrototypeName() {
		return resourcePrototypeName;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public List<VirtualMachine> getChildren() {
		return children;
	}

	public void setChildren(List<VirtualMachine> children) {
		this.children = children;
		this.vms = children;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
